package com.bana.fvs.protocol;

import com.bana.fvs.model.Lamp;

public class NoticeCrash10 {
    public int getId()
    {
        return 0x10;
    }

    public Lamp toModel(byte[] buffer) {

        Lamp lamp=new Lamp();
        lamp.setKzqbsm(buffer[1]);
        short s1=buffer[3];
        short s2=buffer[4];
        lamp.setWdbm(s2*128+s1);
        lamp.setHasCrash(buffer[5]);
        return lamp;
    }
}
